<template lang='pug'>
  .login__mod.login__mod--forget
    h1.login__hd 忘记密码
      router-link.login__hd__btn.btn.btn-outline-primary(to='/login') 登陆
    .login__icon
    form.login__form
      .form-group
        input.form-control(type='text', placeholder='手机号/邮箱号/账号', name='account')
      .row.form-checked
        .col
          input.form-control(type='text', placeholder='输入正确验证码', name='code')
        .col
          a(href='') 换一张
      button.form__submit.btn.btn-primary.btn-block(type='button', @click='submit') 确定
      .form__feedback.invalid-feedback.text-center.d-block 验证码不正确
</template>
<script>
import { sendMessage } from 'api/login'
export default {
  data () {
    return {
    }
  },
  methods: {
    submit () {
      var data = JSON.stringify({
        'header': {
          'userId': '120176400199057409',
          'requestId': '54425',
          'token': 'FTemf4EEUr',
          'userType': 0,
          'ip': '120.10.11.9',
          'agent': 'ios_v1.0.0'
        },
        'userId': '120176400199057409'
      })
      sendMessage(data).then((response) => {
        this.$router.push('forget/identidy')
      })
    }
  }
}
</script>

